package cn.qiao.demo.util;

public class XmlUtil {


    public static String getValue(String name, String xml) {
        String start = "<" + name + ">";
        String end = "</" + name + ">";
        int starti = xml.indexOf(start);
        int endi = xml.indexOf(end);

        String substring = xml.substring(starti, endi);
        String replace = substring.replace(start, "");
        return replace;

    }


}
